package com.cloudkinto.bo.order.outbound;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 截单回库上传
 *
 * @author long
 */
@Data
public class BackOutboundShelfBo {
    @ApiModelProperty("截单id")
    private Long id;

    @ApiModelProperty("出库单id")
    private Long outboundId;

    @ApiModelProperty("类型 1产品id 2箱")
    private Integer dataType;

    private List<BackOutboundShelfBo.BackShelfItem> detailList;

    @Data
    public static class BackShelfItem {
        @ApiModelProperty("产品id")
        private Long productId;
        @ApiModelProperty("sku或箱类号")
        private String skuOrBoxTypeNumber;

        @ApiModelProperty("应上架数量")
        private Integer shouldShelfQty;

        private List<BackOutboundShelfBo.ShelfCellItem> cellDetailList;
    }

    @Data
    public static class ShelfCellItem {
        @ApiModelProperty("库位id")
        private Long rackId;
        @ApiModelProperty("实际上架数量")
        private Integer qty;
    }
}
